#include <stdlib.h>

#include "process.h"
#include "queue.h"
#include "logger.h"
#include "util.h"

struct process_struct *ready_queue;
struct process_struct *waiting_queue;
struct process_struct *terminated_queue;

int ready_size;	        //number in ready queue
int waiting_size;       //number in waiting queue
int terminated_size;    //number of free process 


int add_process_pid(int pid);
int add_process_pid_gid(int pid, int gid);


int resource_size;
char **resources;


struct process_struct * 
run_process(struct process_struct *process);


/*
 * List Process
 */

void list_all();
void list_sched();
void list_queue(int queue);
